package com.yc.sell.exception;

import com.yc.sell.enums.ResultEnum;

import lombok.Getter;

@Getter
public class SellException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }
}
